package com.example.newYear.factory.itemFactory;

// 武器道具类
public class Weapon implements Item {

    private String name;

    public Weapon(String name)
    {
        this.name = name;
    }

    @Override
    public void use()
    {
        System.out.println("使用" + name + "进行攻击");
    }
}
